.websocket {
    height: calc(100vh - 50px);
    overflow: auto;
    box-sizing: border-box;
    padding: 15px;
}
.friend {
    width: 1000px;
    margin: 0 auto;
    display: flex;
}
.search {
    display: flex;
    align-items: center;
    margin-right: 20px;
}
.add {
    display: flex;
    align-items: center;
}
.add img {
    display: block;
    width: 32px;
    height: 32px;
    margin-right: 8px;
}
.add p:nth-of-type(2) {
    margin: 0 8px;
}
.container {
    width: 1000px;
    height: 80%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 auto;
    margin-top: 20px;
    display: flex;
}
.left {
    width: 200px;
    background-color: #fafafa;
}
.left .userGroup {
    line-height: 48px;
    display: flex;
    align-items: center;
}
.left .userGroup span {
    flex: 1;
    text-align: center;
    cursor: pointer;
}
.left .userGroup span:hover, .left .userGroup span.active {
    background-color: #eee !important;
}
.left .friendItem {
    display: flex;
    cursor: pointer;
    padding: 8px 12px;
    border-top: 1px solid #ddd;
}
.left .friendItem:hover, .left .friendItem.active {
    background-color: #eee !important;
}
.left .friendItem img {
    display: block;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    margin-right: 8px;
}
.left .friendItem div {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.left .friendItem div p {
    font-size: 14px;
}
.left .friendItem div span {
    display: block;
    font-size: 12px;
    margin-top: auto;
    color: #666;
}
.right {
    flex: 1;
    border-left: 1px solid #ddd;
}
.msgList {
    position: relative;
    height: 70%;
    padding-top: 48px;
    box-sizing: border-box;
}
.head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    line-height: 48px;
    height: 48px;
}
.list {
    border-top: 1px solid #ddd;
    padding: 12px;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
}
.list::-webkit-scrollbar {
    width: 6px;
}
.list::-webkit-scrollbar-thumb {
    background: #d8d8d8;
    border-radius: 10px;
}
.list div {
    display: flex;
    flex-direction: column;
}
.list div + div {
    margin-top: 12px;
}
.list > div span {
    font-size: 14px;
    text-align: center;
    color: #333;
    margin-bottom: 6px;
}
.list > div > div {
    background-color: #eee;
    max-width: 500px;
    padding: 6px 12px;
    border-radius: 4px;
    line-height: 1.5;
}
.list > div > div > img {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
}
.message {
    display: flex;
    flex-direction: column;
    height: 30%;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
    padding-bottom: 12px;
}
.other {
    display: flex;
    padding: 4px 12px;
    border-bottom: 1px solid #ddd;
}
.other img {
    display: block;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.textarea {
    flex: 1;
    width: 100%;
    border: none;
    resize: none;
    padding: 12px !important;
    box-sizing: border-box;
}
.btn {
    display: flex;
    justify-content: flex-end;
    flex: none;
    padding-right: 12px;
}